<?php
//$host = "90.0.0.101";
$host = "localhost";
$dbusername="root";
$dbpassword="letmein!123";
$dbname="seemycv";

$jenrick_employer_id="14";

ini_set("SMTP","localhost");
ini_set("sendmail_from","techteam@macronimous.in");

Function db_Connect(){	
	global $host,$dbusername,$dbpassword,$dbname;
	$link = mysql_pconnect($host,$dbusername,$dbpassword);
	if(!$link){
		echo("Error in Connection <br>");
		exit;
	}
	if(!mysql_select_db($dbname,$link)){
		echo("Error Selecting Database");
		echo(printf("Error : %d %s",Mysql_errno($link),mysql_error($link)));
	}
	return $link;
}
// for admin authentication
function isAdmin(){
	if($_SESSION['user_name']==""){
		header("Location:index.php");
	}
}
	
?>
